﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
using System.IO;


namespace Football_Application
{
    class Program
    {
    
        static void Main(string[] args)
        {
            string fileName = "Championships.xml";
            ChampionshipRepository CR = new ChampionshipRepository( fileName);
            Console.WriteLine(CR);
/*
            Championship first = new Championship ("PremierLeage", "England");
            Championship second = new Championship();
            second.ChampionshipName = "LaLiga";
            second.Country = "Spain";
            CR.CreateChampionship(first);
            CR.CreateChampionship(second)
 */
            CR.WriteInstance(fileName);
            Console.ReadKey();
        }
    }
}
